<?php

class Minipage_WebController extends Zend_Controller_Action
{

    public function init()
    {

    }

    public function indexAction()
    {
        $homePath = 'home/default/minipage';
        $layout = Zend_Layout::getMvcInstance();
        // Set a layout script path
        $layout->setLayoutPath($homePath);
        // Set a view script path:
        $this->view->addScriptPath($homePath);
        // Load header data
        $head = new Zend_Config_Ini($homePath . '/index.ini', 'head');
        $this->view->headTitle($head->title);

        $meta = array();
        $meta = $head->meta;

        foreach ($meta as $type => $content) {
            $this->view->headMeta()->appendName($type, $content);
        }
        // Rending the view index.phtml
        $this->render('index', null, true);
    }
}